package tds.model28;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Scale
 * @Description 高低音音符解释器
 * @author tds
 * @Date 2020/2/8 18:27
 * @version 1.0.0
 */
public class Scale extends Expression {

    @Override
    public void execute(String key, double value) {
        String scale = "";

        switch (Double.valueOf(value).intValue()){
            case 1:
                scale = "低音";
                break;
            case 2:
                scale = "中音";
                break;
            case 3:
                scale = "高音";
                break;

        }
        System.out.printf(scale + " ");
    }
}
